﻿<div class="row">
    <div class="col-lg-12">
        <div class="row">
            <div class="col-lg-12">
                <ol class="breadcrumb">
                    <li><a href="/">搜索关键词</a></li>
                    <li class="active"><span>系统管理</span></li>
                </ol>
                <div class="clearfix">
                    <h1 class="pull-left">搜索关键词列表</h1>
                 
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <div class="main-box no-header clearfix">
                    <header class="main-box-header clearfix">
                        <h2>搜索关键词</h2>
                    </header>
                    <div class="main-box-body clearfix">
                        <div class="table-responsive">
                            <table id="acc_tb" class="table table-bordered">
                                <thead>
                                    <tr>
                                        <th data-field="SearchKey"><span>关键词</span></th>
                                        <th data-formatter="SearchDate" data-sortable="true"><span>搜索时间</span></th>
                                        <th data-field="SorlCount"><span>返回数量</span></th>
                                        <th data-field="Wxq_id"><span>微信群</span></th>
                                        <th data-field="SearchUserName"><span>用户昵称</span></th>
                                        <th data-formatter="SearchType"><span>来源</span></th>
                                        <th data-field="IP"><span>IP</span></th>
                                        <th data-field="Desc"><span>描述</span></th>
                                    </tr>
                                </thead>
                               
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@section Scripts{
    <style>
        table tr {
            display: table-row;
            vertical-align: inherit;
            border-color: inherit;
        }
        .table-striped > tbody > tr:nth-child(odd) {
            background-color: inherit;
        }
    </style>
<script src="~/Scripts/plugins/bootstrap.min.js"></script>
<script src="~/Scripts/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="~/Scripts/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="~/Scripts/sys/lib/common_raw.js"></script>
<script src="~/Scripts/plugins/layer/layer.min.js"></script>
<script type="text/javascript">
    function initAcTable() {
        $('#acc_tb').bootstrapTable('destroy');
        common.initAcTable("acc_tb", "toolbar", "post", "/getSearchKeyList.html",
            function (data) {
                if (!data.State) {
                    common.msg(data.Message, 1);
                }
            },
            function (e) { },
            true, true, false, 10, 1, "[10,20,30,50]", { });
    }

    $(document).ready(function () {

        initAcTable();

        $("#search").bind("click", function () {
            var load_index3 = layer.load(0, { shade: 0.6 });
            initAcTable();
            layer.close(load_index3);
        });

    });
    function SearchDate(index, row) {
        var birthdayMilliseconds = parseInt(row.SearchDate.replace(/\/Date\(/igm, ""));
        return new Date(birthdayMilliseconds).Format("yyyy-MM-dd hh:mm:ss");
    }
    function SearchType(index, row) {
        return row.SearchType == 1 ? "<span class=\"label label-danger\">网站</span>" : (row.SearchType == 2 ? "<span class=\"label label-success\">微信</span>" : "<span class=\"label label-info\">QQ</span>");
         
    }
 

</script>

}

